import type { IResolution } from '@/api/modules/data/resolution';
import type { Rule } from 'ant-design-vue/es/form';

const formObj: IResolution = {
  resolutionId: '',
  width: 0,
  height: 0,
  description: undefined,
  dpi: 0,
  scale: 0,
  code: '',
  toRotate: '1',
  mode: '',
  color: '',
};
export const form = ref<IResolution>({
  ...formObj,
});

export const formRef = ref();

export const resetForm = () => {
  form.value = {
    ...formObj,
  };
};
export const formRules: Record<string, Rule[]> = {};
